<!DOCTYPE html>
<html lang="zh-CN">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <!-- 
    event事件对象
      跟事件相关的信息，不需要我们传递参数
  -->
  <div>
    Lorem ipsum dolor sit amet consectetur
  </div>
</body>
<script>
  let div = document.querySelector("div");
  div.addEventListener("click", (e) => {
    // e = e || window.e;兼容性处理
    console.log(e);
  });
</script>

</html>